package com.java110.community.smo.impl;


import com.alibaba.fastjson.JSONObject;
import com.java110.community.dao.IActivitiesServiceDao;
import com.java110.community.dao.IRepairSettingServiceDao;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.PageDto;
import com.java110.dto.activities.ActivitiesDto;
import com.java110.dto.repair.RepairSettingDto;
import com.java110.dto.user.UserDto;
import com.java110.intf.community.IActivitiesInnerServiceSMO;
import com.java110.intf.community.IRepairSettingInnerServiceSMO;
import com.java110.intf.user.IUserInnerServiceSMO;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.vo.api.repair.StaffVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @ClassName FloorInnerServiceSMOImpl
 * @Description 活动内部服务实现类
 * @Author wuxw
 * @Date 2019/4/24 9:20
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@RestController
public class RepairSettingInnerServiceSMOImpl extends BaseServiceSMO implements IRepairSettingInnerServiceSMO {

    @Autowired
    private IRepairSettingServiceDao repairSettingServiceDao;


    @Override
    public void saveRepairSetting(RepairSettingDto repairSettingDto) {
        repairSettingServiceDao.saveRepairSetting(repairSettingDto);
    }

    @Override
    public List<RepairSettingDto> listRepairSettings(RepairSettingDto repairSettingDto) {
        return  repairSettingServiceDao.listRepairSettings(repairSettingDto);
    }

    @Override
    public RepairSettingDto getOneById(Long id) {
        return repairSettingServiceDao.getOneById(id);
    }

    @Override
    public void updateRepairSetting(RepairSettingDto repairSettingDto) {
         repairSettingServiceDao.updateRepairSetting(repairSettingDto);
    }

    @Override
    public void deleteRepairSetting(Long id) {
        repairSettingServiceDao.deleteRepairSetting(id);
    }

    @Override
    public void saveRepairTypeUser(Map<String, Object> map) {
        repairSettingServiceDao.saveRepairTypeUser(map);
    }

    @Override
    public StaffVo getStaff(Long repairType, Long staffId) {
        return  repairSettingServiceDao.getStaff(repairType, staffId);
    }

    @Override
    public List<StaffVo> listRepairTypeUsers(JSONObject reqJson) {
        return repairSettingServiceDao.listRepairTypeUsers(reqJson);
    }

}
